package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class RoutineInvocation implements NonparenthesizedValueExpressionPrimary {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName routineName;
    private SqlArgumentList sqlArgumentList;

    public RoutineInvocation(SchemaQualifiedName routineName, SqlArgumentList sqlArgumentList) {
        this.beginIndex = routineName.getBeginIndex();
        this.endIndex = sqlArgumentList.getEndIndex();
        this.routineName = routineName;
        this.sqlArgumentList = sqlArgumentList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getRoutineName() {
        return routineName;
    }

    public SqlArgumentList getSqlArgumentList() {
        return sqlArgumentList;
    }

}
